﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TestcraftLibrary.Messages;
using Lidgren.Network;

namespace TestcraftLibrary.Network
{
    public class MessageReceivedEventArgs : System.EventArgs
    {
        public NetIncomingMessage ReceivedMessage { get; private set; }

        public MessageType Type { get; private set; }

        public bool Handled { get; set; }

        public MessageReceivedEventArgs(MessageType type, NetIncomingMessage message)
        {
            this.Type = type;
            this.ReceivedMessage = message;
            this.Handled = false;
        }
    }
}
